<template>
  <div class="left-center">
    <div class="content">
      <nav class="title"></nav>
      <main class="main">
        <nav class="item-content" v-for="(item,index) in array">
          <div class="index">{{item.name}}</div>
          <div class="value">
            <strong>{{item.value}}</strong>
            <span class="suffix">家</span>
          </div>
        </nav>
      </main>
    </div>
  </div>
</template>

<script setup lang="ts">

let array = new Array(7).fill({
  name:'陆良一号',
  value:100
})
</script>

<style scoped lang="less">
.left-center{
  width: 453px;
  height: 338px;
  position: absolute;
  left: 20px;
  top: 402px;
  background-image: url(../assets/left-center.svg);
  display: flex;
  justify-content: center;
  align-items: center;
  .content{
    width: 400px;
    .title{
      width: 100%;
      margin-top: 20px;
      height: 35px;
      background-image: url(../assets/left-center-title.svg);
    }
    .main{
      width: 100%;
      .item-content{
        width: 100%;
        height: 35px;
        background-image: url(../assets/right-center-item.svg);
        &:hover{
          transition: all .05s;
          background-image: url(../assets/active-item-hover.svg);
        }
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
        .index{
          width: 73%;
          margin-left: 17px;
          font-weight: 500;
          font-size: 14px;
        }
        .value{
          text-align: center;
          width: 33%;
          color: #FFB800;
          font-size: 20px;
          font-weight: 700;
          box-sizing: border-box;
          padding-left: 10px;
          .suffix{
            margin-left: 3px;
            font-size: 12px;
            color: #ededed;
          }
        }
      }
    }
  }
}
</style>
